import React from 'react';
import ReactDOM from 'react-dom';
import { Layout, Menu, Icon } from 'antd';
const { Header, Content } = Layout;
const SubMenu = Menu.SubMenu;

ReactDOM.render(
    <Layout className="layout">
        <Header>
            <Menu theme="dark"
                  mode="horizontal"
                  defaultSelectedKeys={['2']}
                  style={{ lineHeight: '64px' }}>

                <Menu.Item key="newTileSet" titke="新建图块集">
                    <a href="#">新建图块集</a>
                </Menu.Item>
                <SubMenu key="sub1" title={<span><Icon type="mail" /><span>Navigation One</span></span>}>
                    <Menu.Item key="newTileSet" titke="新建图块集">
                        <a href="#">新建图块集</a>
                    </Menu.Item>
                </SubMenu>

            </Menu>
        </Header>
        <Content>

        </Content>
    </Layout>,
    document.getElementById('root')
);